const API_PREFIX = process.env.NODE_ENV === 'production' ? '' : '/api'

// 登录
export const userLogin = `${API_PREFIX}/user/login`

// 用户列表
export const userPage = `${API_PREFIX}/user/page`

// 批准用户
export const userHandle = `${API_PREFIX}/user/handle`

// 角色列表
export const sysRolePage = `${API_PREFIX}/sysRole/page`

// 角色资源（post:新增 、delete:删除、put:更新）
export const sysRole = `${API_PREFIX}/sysRole`

// 获取菜单列表
export const sysAppList = `${API_PREFIX}/sysApp/list`

// 菜单资源（post:新增 、delete:删除、put:更新）
export const sysApp = `${API_PREFIX}/sysApp`

// 获取角色关联的菜单-非树化
export const getSysRoleMenu = (roleId) => `${API_PREFIX}/sysRole/${roleId}/menu`

// 角色关联菜单-批量
export const roleMenuRelation = `${API_PREFIX}/roleMenuRelation/batch`

// 获取用户所有角色
export const getUserRole = (userId) => `${API_PREFIX}/user/${userId}/role`

// 获取用户所有菜单
export const getUserMenu = (userId) => `${API_PREFIX}/user/${userId}/menu`

// 用户关联角色-批量
export const accountRoleRelation = `${API_PREFIX}/accountRoleRelation/batch`

// 角色关联的用户-分页
export const sysRoleUsers = (roleId) => `${API_PREFIX}/sysRole/${roleId}/users`

// 方案分类-列表
export const classificationPage = `${API_PREFIX}/solution/classification/list`

// 方案分类资源
export const classification = `${API_PREFIX}/solution/classification`

// 删除方案分类
export const deleteClassification = (id) => `${API_PREFIX}/solution/classification/${id}`

// 解决方案列表
export const solutionPage = `${API_PREFIX}/solution/page`

// 解决方案资源
export const solution = `${API_PREFIX}/solution`

// 自定义页面列表
export const solutionContentPage = `${API_PREFIX}/solution/content/page`

// 自定义页面列表所有数据
export const solutionContentList = `${API_PREFIX}/solution/content/list`

// 自定义页面资源
export const solutionContent = `${API_PREFIX}/solution/content`

// 图片上传资源
export const upload = `${API_PREFIX}/upload`

// 图标管理资源
export const productIcon = `${API_PREFIX}/product/icon`

// 删除图标管理
export const deleteProductIcon = (id) => `${API_PREFIX}/product/icon/${id}`

// 图标管理分野
export const productIconPage = `${API_PREFIX}/product/icon/page`

// 图标管理列表
export const productIconList = `${API_PREFIX}/product/icon/list`

// 文件下载管理
export const attachmentInfoPage = `${API_PREFIX}/attachment/info/page`

// 文件下载资源
export const attachmentInfo = `${API_PREFIX}/attachment/info`

// 工作经验
export const careerExperience = `${API_PREFIX}/career/experience`

// 工作经验列表
export const careerExperienceList = `${API_PREFIX}/career/experience/list`

// 工作地点
export const careerAddress = `${API_PREFIX}/career/address`

// 工作地点列表
export const careerAddressList = `${API_PREFIX}/career/address/list`

// 工作公司
export const careerCompany = `${API_PREFIX}/career/company`

// 工作公司列表
export const careerCompanyList = `${API_PREFIX}/career/company/list`

// 工作机会
export const careerOpportunities = `${API_PREFIX}/career/opportunities`

// 工作机会-分页
export const careerOpportunitiesPage = `${API_PREFIX}/career/opportunities/page`

// 访问记录-总
export const accessRecordStaticsTotal = `${API_PREFIX}/access/record/statics/total`

// 访问记录-按类型
export const accessRecordStaticsTypeTotal = `${API_PREFIX}/access/record/statics/type/total`

// 访问记录-分页
export const accessRecordPage = `${API_PREFIX}/access/record/page`
